#ifndef _UIRESOURCE_MANAGER_H_
#define _UIRESOURCE_MANAGER_H_

//#include <gtk.h>
#include <goocanvas.h>

#include <iostream>
#include <map>

namespace lgb_gtk
{

  class UiResourceManager
  {
    std::map<std::string,GdkPixbuf *> pixbufDatas;

    static UiResourceManager *instance;
    UiResourceManager();

    GdkPixbuf *LoadImageFile(std::string filePath);

  public:
    ~UiResourceManager();
    static UiResourceManager *GetInstance();
    
    GdkPixbuf *CreatePixbuf(std::string filePath);
    GdkPixbuf *CreatePixbufInScale(std::string filePath , double scale);
    GdkPixbuf *CreatePixbufInFixedArea(std::string filePath , double width , double height);
  };

}

#endif
